--[[
    运行一条json命令
]]

local skynet = require "skynet"
local redis = require "skynet.db.redis"
local json = require "cjson.safe"
require "pubenum"
require "skynet.manager"

math.randomseed(os.time())
math.random()

json.encode_sparse_array(true,1,1)

local redis_conf = {
    host = "127.0.0.1",
    port = 6379,
    db = 15,
}

local redis_list = { }

------------------------------
------------------------------

local cmd = {
    mid = "myid",   --结果将插入到myrespmq
    msghead = {
        msgname = nil, --此处设置命令名
    },

    msgbody = { --此处填写命令内容
	
    },
}

---------------
---

local redisdao = {}

function redisdao.query_data(redisname, cmd, key, ...)
    local db = redis_list[redisname]
    if not db then
        return
    end

    local func = db[cmd]
    if func then
        return func(db,key,...)
    end
end

-------------

local function run_cmd(cmd,key,msg)
    print(cmd,key,msg)

    if msg and msg.msghead and msg.msghead.msgname then
        if type(msg) == "table" then
            msg = json.encode(msg)
        end
        redisdao.query_data(".gmmqredis", cmd, key, msg)
    end

    --添加动态跑马灯
    --local cmd = {msghead = {msgname = "addhrlmsg"}, msgbody = {msg = {level = 2, repeatnum = 2, content = "test 1"} }}
    --redisdao.query_data(".gmmqredis", "rpush", "requestmq", json.encode(cmd))

    --修改静态跑马灯
    --local cmd = {msghead = {msgname = "sethrlconfigmsg"}, msgbody = {configmsg = {"天天开心","元旦快乐"} }}
    --redisdao.query_data(".gmmqredis", "rpush", "requestmq", json.encode(cmd))

    --此处添加命令

    --道具兑换列表
    -- src_id = 1,    --兑换消耗道具的id
    --dest_id = 2,    --兑换获得道具的id
    --cost_num = 3,   --消耗原道具数量
    --gain_num = 4,   --兑换获得道具数量

    local prop_exchange_list = {    
        [1] = { --100元宝兑猪头（11个）
           src_id = 2, dest_id = 203,
           cost_num = 100, gain_num = 11,
        },
        [2] = {--100元宝兑西红柿（11个）
           src_id = 2, dest_id = 204,
           cost_num = 100, gain_num = 11,
        },
        [3] = { --100元宝兑尖叫鸡（11个)
           src_id = 2, dest_id = 205,
           cost_num = 100, gain_num = 11,
        },
        [4] = { --100元宝兑金碧辉煌（7天）
           src_id = 2, dest_id = 102,
           cost_num = 100, gain_num = 1,
        },
        [5] = { --300元宝兑招财进宝（7天）
           src_id = 2, dest_id = 104,
           cost_num = 300, gain_num = 1,
        },
        [6] = { --1000元宝兑1000友豆
           src_id = 2, dest_id = 3,
           cost_num = 1000, gain_num = 1000,
        },
        [7] = { --5000元宝兑5000友豆
           src_id = 2, dest_id = 3,
           cost_num = 5000, gain_num = 5000,
        },
        [8] = { --100元宝兑 狗年旺旺（7天）
           src_id = 2, dest_id = 103,
           cost_num = 100, gain_num = 1,
        },
        [9] = { --1000元宝兑--春意盎然（7天）
           src_id = 2, dest_id = 101,
           cost_num = 50, gain_num = 1,
        },
    }
    redisdao.query_data(".gmmqredis", "set", "prop_exchange_list", json.encode(prop_exchange_list))

    --转盘配置

    local turntable_config = {
        max_times = 4, 
        free_times = 1, 
        cost_list = {
            [1] = {prop_id = 2,cost = 100},
            [2] = {prop_id = 2,cost = 100},
            [3] = {prop_id = 2,cost = 100},
        }
    }
    redisdao.query_data(".gmmqredis", "set", "turntable_config", json.encode(turntable_config))


    --默认转盘奖励表

    local turntable_prize_list = {
        [1] = {
            id = 3,
            value = 30000,
            prob = 0.070,
        },
        [2] = {
            id = 3,
            value = 10000,
            prob = 0.279,
        },
        [3] = {
            id = 3,
            value = 60000,
            prob = 0.023,
        },
        [4] = {
            id = 3,
            value = 15000,
            prob = 0.233,
        },
        [5] = {
            id = 3,
            value = 12000,
            prob = 0.279,
        },
        [6] = {
            id = 3,
            value = 18000,
            prob = 0.116,
        },
    }
    redisdao.query_data(".gmmqredis", "set", "turntable_prize_list", json.encode(turntable_prize_list))


    --默认连续登陆奖励表

    local login_prize_list = {
        [1] = {
            id = 3,
            value = 20000,
            days = 2,
        },
        [2] = {
            id = 3,
            value = 40000,
            days = 5,
        },
        [3] = {
            id = 3,
            value = 80000,
            days = 7,
        },
        [4] = {
            id = 3,
            value = 150000,
            days = 10,
        },
        [5] = {
            id = 3,
            value = 300000,
            days = 15,
        },
        [6] = {
            id = 3,
            value = 500000,
            days = 30,
        },
        [7] = {
            id = 3,
            value = 50000,
            max_days = 31,  --超过30天
        },
    }
    redisdao.query_data(".gmmqredis", "set", "login_prize_list", json.encode(login_prize_list))


    --道具配置表
    local prop_conf_list = {
        [1] = {
            id = 100,
            name = "默认头像框",
            effecttime = -1,
            descript = "默认头像框 永久",
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [2] = {
            id = 101,
            name = "春意盎然",
            effecttime = 7,
            descript = "春意盎然（7天）*7天",
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [3] = {
            id = 102,
            name = "金碧辉煌",
            effecttime = 7,
            descript = "金碧辉煌*7天",
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [4] = {
            id = 103,
            name = "狗年旺旺",
            effecttime = 7,
            descript = "狗年旺旺*7天",
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [5] = {
            id = 104,
            name = "招财进宝",
            effecttime = 7,
            descript = "招财进宝*7天",
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [6] = {
            id = 201,
            name = "玫瑰",
            effecttime = -1,
            descript = "互动表情-玫瑰",
            price = -1,
            broadcast_type = EBroadcastType.IN_TABLE,
            dr_value = 1000,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [7] = {
            id = 202,
            name = "吻",
            effecttime = -1,
            descript = "互动表情-吻",
            price = -1,
            broadcast_type = EBroadcastType.IN_TABLE,
            dr_value = 100,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [8] = {
            id = 203,
            name = "猪头",
            effecttime = -1,
            descript = "互动表情-猪头",
            price = 10,         ---使用表情时,没有表情就扣元宝,price为-1或nil,表示这个表情道具不能直接购买
            dr_value = 10,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [9] = {
            id = 204,
            name = "西红柿",
            effecttime = -1,
            descript = "互动表情-西红柿",
            price = 10,
            dr_value = 10,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [10] = {
            id = 205,
            name = "尖叫鸡",
            effecttime = -1,
            descript = "互动表情-尖叫鸡",
            price = 10,
            dr_value = 10,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [11] = {
            id = 206,
            name = "花雨",
            effecttime = -1,
            descript = "互动表情-花雨",
            price = -1,
            broadcast_type = EBroadcastType.IN_TABLE_AND_HALL,
            dr_value = 5000,
            total_use_limit = -1,
            day_use_limit = -1,
        },
        [12] = {
            id = 401,
            name = "新手红包",
            effecttime = -1,
            descript = "新手红包",
            getitemlist = {
                { id = 2, num = 2000},
                { id = 102, num = 1},
            },
            price = -1,
            dr_value = 0,
            total_use_limit = 1,
            day_use_limit = 1,
        },
        [13] = {
            id = 402,
            name = "金豆红包",
            effecttime = -1,
            descript = "金豆红包",
            getitemlist = {
                { id = 2, num = 1000},
            },
            price = -1,
            dr_value = 0,
            total_use_limit = -1,
            day_use_limit = 10,
        },
    }
    redisdao.query_data(".gmmqredis", "set", "prop_conf_list", json.encode(prop_conf_list))

    ----增加拼十服务费扣费配置和奖池配置
    local dnconf = {
        tipconf = {
            --[[
                tabletype  
                TABLE_TYPE_ZUANSI = 1,     ---自建钻石桌 
                TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
                TABLE_TYPE_COIN = 3,        ---金币场
                {
                    QZ_TYPE_FREE = 1,       -----自由抢庄
                    QZ_TYPE_KANPAI = 2,     -----看牌抢庄
                    [玩法] = 服务费率
                }
            --]]
            [1] = {   
                [1] = {
                    { range ={0, 10}, per = 1.0},
                    { range ={10, 1000000}, per = 0.5},
                },
                [2] = {
                    { range ={0, 10}, per = 1.0},
                    { range ={10, 1000000}, per = 0.5},
                },
            },
            [2] = {
                [1] = 0.5,
                [2] = 0.5,
            },
            [3] = {
                [1] = {
                    { range ={0, 10}, per = 1.0},
                    { range ={10, 1000000}, per = 0.5},
                },
                [2] = {
                    { range ={0, 10}, per = 1.0},
                    { range ={10, 1000000}, per = 0.5},
                },
            },
        },
        ---牛牛彩池配置
        jackoptconf = {
            chargeconf = {
                --[[
                tabletype  
                TABLE_TYPE_ZUANSI = 1,     ---自建钻石桌 
                TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
                TABLE_TYPE_COIN = 3,        ---金币场
                {
                    QZ_TYPE_FREE = 1,       -----自由抢庄
                    QZ_TYPE_KANPAI = 2,     -----看牌抢庄
                    [玩法] = 服务费率
                }
                --]]
                [1] = {   
                    [1] = 0.2,
                    [2] = 0.2,
                },
                [2] = {
                    [1] = 0.5,
                    [2] = 0.3,
                },
                [3] = {
                    [1] = 0.2,
                    [2] = 0.2,
                },
            },
            system_get = 0.2, ---系统分成
            jackopt_get = 0.8,  ----收取的钱按比例投入奖池
            ----子奖池当前总额对应的奖池费率
            system_get_assign = {
                [1] = { 
                    ---初级奖池
                    {range = {0, 30000}, percent = 0.2},
                    {range = {30000, -1}, percent = 0.3},
                },
                [2] = {
                    ---中级奖池
                    {range = {0, 100000}, percent = 0.2},
                    {range = {100000, -1}, percent = 0.3},
                },
                [3] = {
                    ---高级奖池
                    {range = {0, 250000}, percent = 0.2},
                    {range = {250000, -1}, percent = 0.5},
                },
            },
            childjackopt = {
                [1] = {
                    assignpercent = 0.5,
                    basescores = {10, 200}
                },
                [2] = {
                    assignpercent = 0.3,
                    basescores = {200, 500}
                },
                [3] = {
                    assignpercent = 0.2,
                    basescores = {500, 100000},
                },
            },
            getjackopt = {
                ---五小牛： 8%
                [17] = 0.08,
                ---炸弹牛:  8%
                [15] = 0.03,
                ---五花牛:  2%
                [16] = 0.05,
                ---牛牛 : 0.5%
                [11] = 0.005,
            }
        },
        svalue_open_conf = {
            { s_down = nil, s_up = -20000 * 100, win = 1.00, normal = 0.00, lose = 0.00},       
            { s_down = -20000 * 100, s_up = -10000 * 100, win = 0.70, normal = 0.30, lose = 0.00},      
            { s_down = -10000 * 100, s_up = -2000 * 100, win = 0.60, normal = 0.40, lose = 0.00},       
            { s_down = -2000 * 100, s_up = -1000 * 100, win = 0.50, normal = 0.50, lose = 0.00},        
            { s_down = -1000 * 100, s_up = -200 * 100, win = 0.40, normal = 0.60, lose = 0.00},       
            { s_down = -200 * 100, s_up = 500 * 100, win = 0.10, normal = 0.90, lose = 0.00},        
            { s_down = 500 * 100, s_up = 2000 * 100, win = 0.00, normal = 0.99, lose = 0.01},        
            { s_down = 2000 * 100, s_up = 10000 * 100, win = 0.00, normal = 0.95, lose = 0.05},       
            { s_down = 10000 * 100, s_up = 50000 * 100, win = 0.00, normal = 0.85, lose = 0.15},          
            { s_down = 50000 * 100, s_up = 100000 * 100, win = 0.00, normal = 0.80, lose = 0.20},         
            { s_down = 100000 * 100, s_up = nil, win = 0.00, normal = 0.75, lose = 0.25},              
        },
        robot_first = 0.5,
        ----牛牛各场次机器人开关，人数开启限制
        robot_match_conf = {
            [1] = {
                min_player_num = 1,
                is_open = false,
            },
            [2] = {
                min_player_num = 1,
                is_open = false,
            },
            [3] = {
                min_player_num = 1,
                is_open = false,
            },
            [4] = {
                min_player_num = 1,
                is_open = false,
            },
            [5] = {
                min_player_num = 1,
                is_open = false,
            },
            [6] = {
                min_player_num = 1,
                is_open = false,
            },
        },
    }

    redisdao.query_data(".gmmqredis", "set", "dnnode_conf", json.encode(dnconf))

    ----增加28杠服务费扣费配置和奖池配置
    local gang28conf = {
        tipconf = {
            --[[
                tabletype  
                TABLE_TYPE_ZUANSI = 1,     ---自建钻石桌 
                TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
                TABLE_TYPE_COIN = 3,        ---金币场
                {
                    QZ_TYPE_FREE = 1,       -----自由抢庄
                    QZ_TYPE_KANPAI = 2,     -----看牌抢庄
                    [玩法] = 服务费率
                }
            --]]
            [1] = {   
                [1] = 0.5,
                [2] = 0.5,
            },
            [2] = {
                [1] = 0.5,
                [2] = 0.3,
            },
            [3] = {
                [1] = 0.2,
                [2] = 0.2,
            },
        },
        ---彩池配置
        jackoptconf = {
            chargeconf = {
                --[[
                tabletype  
                TABLE_TYPE_ZUANSI = 1,      ---自建钻石桌 
                TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
                TABLE_TYPE_COIN = 3,        ---金币场
                {
                    QZ_TYPE_FREE = 1,       -----自由抢庄
                    QZ_TYPE_KANPAI = 2,     -----看牌抢庄
                    [玩法] = 服务费率
                }
                --]]
                [1] = {   
                    [1] = 0.2,
                    [2] = 0.2,
                },
                [2] = {
                    [1] = 0.5,
                    [2] = 0.3,
                },
                [3] = {
                    [1] = 0.2,
                    [2] = 0.2,
                },
            },
            system_get = 0.2, ---系统分成
            jackopt_get = 0.8,  ----收取的钱按比例投入奖池
            system_get_assign = {
                [1] = { 
                    ---初级奖池
                    {range = {0, 30000}, percent = 0.2},
                    {range = {30000, -1}, percent = 0.5},
                },
                [2] = {
                    {range = {0, 100000}, percent = 0.2},
                    {range = {100000, -1}, percent = 0.5},
                },
                [3] = {
                    {range = {0, 30000}, percent = 0.2},
                    {range = {30000, -1}, percent = 0.5},
                },
            },
            childjackopt = {
                [1] = {
                    assignpercent = 0.5,
                    basescores = {0, 200}
                },
                [2] = {
                    assignpercent = 0.3,
                    basescores = {200, 500}
                },
                [3] = {
                    assignpercent = 0.2,
                    basescores = {500, 100000},
                },
            },
            getjackopt = {
                -- 对十： 8%
                [4] = 0.08,
            }
        },
    }

    redisdao.query_data(".gmmqredis", "set", "gang28node_conf", json.encode(gang28conf))

    ----增加焖鸡服务费扣费配置和奖池配置
    local pszconf = {
        tipconf = {
            --[[
                tabletype  
                ROOM_TYPE_COMMON = 1,      ---自建钻石桌 
                ROOM_TYPE_FRIEND = 2,      ---自建房卡桌
                ROOM_TYPE_COIN = 3,        ---金币场
                {
                    GAME_TYPE_COMMON = 1,   --普通模式
	                GAME_TYPE_PASSION = 2,  --激情模式
	                GAME_TYPE_COMMON3 = 3,  --普通+必闷三圈
	                GAME_TYPE_PASSION3 = 4, --激情+必闷三圈
                    [玩法] = 服务费率
                }
            --]]
            [1] = {   
                [1] = 0.5,
                [2] = 0.5,
                [3] = 0.5,
                [4] = 0.5,
            },
            [2] = {
               
            },
            [3] = {
                -- [1] = 0.2,
                -- [2] = 0.2,
                -- [3] = 0.2,
                -- [4] = 0.2,
            },
        },
        ---焖鸡彩池配置
        jackoptconf = {
            chargeconf = {
                --[玩法] = 服务费率
                [1] = {   
                    [1] = 0.1,
                    [2] = 0.3,
                    [3] = 0.1,
                    [4] = 0.3,
                },
                [2] = {
                   
                },
                [3] = {
                    
                },
            },
            system_get = 0.2,   ---系统分成
            jackopt_get = 0.8,  ----收取的钱按比例投入奖池
            system_get_assign = {
                [1] = { 
                    ---初级奖池
                    {range = {0, 40000}, percent = 0.2},
                    {range = {40000, -1}, percent = 0.5},
                },
                [2] = {
                    {range = {0, 150000}, percent = 0.2},
                    {range = {150000, -1}, percent = 0.5},
                },
                [3] = {
                    {range = {0, 350000}, percent = 0.2},
                    {range = {350000, -1}, percent = 0.5},
                },
            },
            childjackopt = {
                [1] = {
                    assignpercent = 0.5,
                    basescores = {0, 200}
                },
                [2] = {
                    assignpercent = 0.3,
                    basescores = {200, 500}
                },
                [3] = {
                    assignpercent = 0.2,
                    basescores = {500, 100000},
                },
            },
            getjackopt = {
                ---AAA： 6%
                [6] = 0.06,
                ---豹子: 3%
                [5] = 0.03,
                ---同花顺: 1%
                [4] = 0.01,
            }
        },
    }
    redisdao.query_data(".gmmqredis", "set", "psznode_conf", json.encode(pszconf))
	
	----增加十点半服务费扣费配置和奖池配置
    local sdbconf = {
        tipconf = {
            [1] = {   
                [1] = 0.5,
                [2] = 0.5,

            },
            [2] = {
               
            },
            [3] = {
                [1] = 0.2,
                [2] = 0.2,
            },
        },
        ---十点半彩池配置
        jackoptconf = {
            chargeconf = {
                [1] = {   
                    --[玩法] = 服务费率
                    [1] = 0.2,
                    [2] = 0.2,
                },
                [2] = {
                   
                },
                [3] = {

                },
            },
            system_get = 0.2,   ---系统分成
            jackopt_get = 0.8,  ----收取的钱按比例投入奖池
            system_get_assign = {
                [1] = { 
                    ---初级奖池
                    {range = {0, 20000}, percent = 0.2},
                    {range = {20000, -1}, percent = 0.5},
                },
                [2] = {
                    {range = {0, 80000}, percent = 0.2},
                    {range = {80000, -1}, percent = 0.5},
                },
                [3] = {
                    {range = {0, 160000}, percent = 0.2},
                    {range = {160000, -1}, percent = 0.5},
                },
            },
            childjackopt = {
                [1] = {
                    assignpercent = 0.5,
                    basescores = {0, 200}
                },
                [2] = {
                    assignpercent = 0.3,
                    basescores = {200, 500}
                },
                [3] = {
                    assignpercent = 0.2,
                    basescores = {500, 100000},
                },
            },
            getjackopt = {
                ---人五小:8%
                [6] = 0.08,
                ---天王: 4%
                [5] = 0.04,
                ---五小: 1%
                [4] = 0.01,
            }
        },
    }
    redisdao.query_data(".gmmqredis", "set", "sdbnode_conf", json.encode(sdbconf))

    ----增加百人牛牛配置
    local brnnconf = {
        tipconf = {
            player_win_sys_get = 0.05,
            banker_win_sys_get = 0.05,
            service_fee = 0.04, 
        },
        svalue_add_value = 1000000,
        svalue_open_conf = {
            { s_down = nil, s_up = -5000000, win = 1.00, normal = 0.00, lose = 0.00},       --- s < -5000000
            { s_down = -5000000, s_up = -1000000, win = 0.80, normal = 0.20, lose = 0.00},      ---   -5000000 <= s < -1000000
            { s_down = -1000000, s_up = -200000, win = 0.60, normal = 0.40, lose = 0.00},       ---   -1000000 <= s < -200000
            { s_down = -200000, s_up = -100000, win = 0.30, normal = 0.70, lose = 0.00},        ---   -200000 <= s < -100000
            { s_down = -100000, s_up = 500000, win = 0.20, normal = 0.80, lose = 0.00},        ---   -10万 <= s < 200 万
            { s_down = 500000, s_up = 1000000, win = 0.00, normal = 0.90, lose = 0.10},        ---   -10万 <= s < 200 万
            { s_down = 1000000, s_up = 2000000, win = 0.00, normal = 0.80, lose = 0.20},        ---   -10万 <= s < 200 万
            { s_down = 2000000, s_up = 10000000, win = 0.00, normal = 0.70, lose = 0.30},       ---   200万 <= s < 1000 万
            { s_down = 10000000, s_up = 50000000, win = 0.00, normal = 0.60, lose = 0.40},          ---   1000 万 <= s < 5000 万
            { s_down = 50000000, s_up = 100000000, win = 0.00, normal = 0.50, lose = 0.50},         ---   5000 万 <= s < 1 亿
            { s_down = 100000000, s_up = nil, win = 0.00, normal = 0.40, lose = 0.60},              ---   s >= 1 亿
        },
        up_banker_limit = 3000 * 100,
        down_banker_limit = 3000 * 100,
        lose_per  = 0.02,   ---- s>0 loselimit = s * 0.02 + 100000 s < 0 loselimit = 100000
        loselimit = 5000 * 100,
        robot_per = 0.02,
        min_robot_num = 2,                      ----最小机器人数
        banker_time_limit = -1,
        bet_min_diamond = 10*100,
        max_no_bet_time = 10,                    ----最多几局不下注就踢出房间
    }

    redisdao.query_data(".gmmqredis", "set", "brnnnode_conf", json.encode(brnnconf))

    --红包扫雷配置
    local hbslconf = {
        robot_qhb_weight = {
            { per = 0, qhb_num = 0},
            { per = 90, qhb_num = 1},
            { per = 10, qhb_num = 2}
        },
    }
    redisdao.query_data(".gmmqredis", "set", "hbslnode_conf", json.encode(hbslconf))
    
    
    --活动奖励表-流水红包
    local redpacketwater_prize_list = {
        [1] = {
            id = 2,            --奖励类型 2:钻石
            prize_id = 1,      --该项奖励对应的id
            minval = 500,      --红包最小金额
            midval = 1000,     --中间值，用来调控随机结果
            maxval = 1500,     --红包最大金额
            water = 688800,    --需要达到的流水值
        },
        [2] = {
            id = 2,            --奖励类型 2:钻石
            prize_id = 2,      --该项奖励对应的id
            minval = 800,      --红包最小金额
            midval = 1600,     --中间值，用来调控随机结果
            maxval = 2400,     --红包最大金额
            water = 1688800,   --需要达到的流水值
        },
        [3] = {
            id = 2,            --奖励类型 2:钻石
            prize_id = 3,      --该项奖励对应的id
            minval = 1200,     --红包最小金额
            midval = 2400,     --中间值，用来调控随机结果
            maxval = 3600,     --红包最大金额
            water = 2888800,   --需要达到的流水值
        },
        [4] = {
            id = 2,            --奖励类型 2:钻石
            prize_id = 4,      --该项奖励对应的id
            minval = 2000,     --红包最小金额
            midval = 4000,     --中间值，用来调控随机结果
            maxval = 6000,     --红包最大金额
            water = 4888800,   --需要达到的流水值
        },
    }
    redisdao.query_data(".gmmqredis", "set", "redpacketwater_prize_list", json.encode(redpacketwater_prize_list))
    
    --活动映射表，活动id->活动奖励列表
    local activity_index_list = {
        [1001] = "redpacketwater_prize_list",    --流水红包活动
    }
    redisdao.query_data(".gmmqredis", "set", "activity_index_list", json.encode(activity_index_list))
    
end

--入口
skynet.start(function()
    local gmmqredis = redis.connect(redis_conf)	--连接gm redis数据库
    redis_list[".gmmqredis"] = gmmqredis

    run_cmd("rpush","requestmq",cmd)
    skynet.abort()
end)

--end
--修改后，运行cmd.sh即可

